package spt.utils;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class ValueXMLWriter {
	public static String write(String valueName, String content){
		Document document = XMLUtils.newDocument();
		Element value = document.createElement("value");
		value.setAttribute("name", valueName);
		value.setTextContent(content);
		document.appendChild(value);
		return XMLUtils.transformToString(document);
	}
}
